from selenium import webdriver
from time import sleep
from selenium.webdriver.chrome.service import Service

url = r'http://www.bilibili.com'
chrome_location = r'D:\chrom browser\chrome-win\chrome.exe'
options = webdriver.ChromeOptions()
options.binary_location = chrome_location
driver_location = r'C:\Users\DELL\AppData\Local\Programs\Python\Python38\chromedriver.exe'
service = Service(driver_location)
# driver = webdriver.Firefox()
driver = webdriver.Chrome(options=options, service=service)
driver.get(url)
sleep(60)
driver.quit()



